package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 捐赠记录对象 donation_record
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
public class DonationRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long recordId;

    /** 资助者ID */
    @Excel(name = "资助者ID")
    private Long donorId;

    /** 需求ID */
    @Excel(name = "需求ID")
    private Long needId;

    /** 捐赠数量 */
    @Excel(name = "捐赠数量")
    private Long donateQuantity;

    /** 捐赠时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "捐赠时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date donateTime;

    /** 预计送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date estimatedTime;

    /** 实际送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualTime;

    /** 状态（0已捐赠 1已送达 2已确认） */
    @Excel(name = "状态", readConverterExp = "0=已捐赠,1=已送达,2=已确认")
    private String status;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setDonorId(Long donorId) 
    {
        this.donorId = donorId;
    }

    public Long getDonorId() 
    {
        return donorId;
    }

    public void setNeedId(Long needId) 
    {
        this.needId = needId;
    }

    public Long getNeedId() 
    {
        return needId;
    }

    public void setDonateQuantity(Long donateQuantity) 
    {
        this.donateQuantity = donateQuantity;
    }

    public Long getDonateQuantity() 
    {
        return donateQuantity;
    }

    public void setDonateTime(Date donateTime) 
    {
        this.donateTime = donateTime;
    }

    public Date getDonateTime() 
    {
        return donateTime;
    }

    public void setEstimatedTime(Date estimatedTime) 
    {
        this.estimatedTime = estimatedTime;
    }

    public Date getEstimatedTime() 
    {
        return estimatedTime;
    }

    public void setActualTime(Date actualTime) 
    {
        this.actualTime = actualTime;
    }

    public Date getActualTime() 
    {
        return actualTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("donorId", getDonorId())
            .append("needId", getNeedId())
            .append("donateQuantity", getDonateQuantity())
            .append("donateTime", getDonateTime())
            .append("estimatedTime", getEstimatedTime())
            .append("actualTime", getActualTime())
            .append("status", getStatus())
            .toString();
    }
}
